rust: use {build,host}Platform.{gcc.arch,rustc.flags}#211868
Conversation
|
Hrm, the situation on I think we're going to end up with some kind of rosetta stone. Also, ... apparently "this LLVM version" means "all LLVM versions (unless you apply the Rustc should be telling people to use `llc -march=aarch64 -mattr=help`:Available CPUs for this target:a64fx - Select the a64fx processor. Available features for this target: a35 - Cortex-A35 ARM processors. Use +feature to enable a feature, or -feature to disable it. |
This partially reverts commit 470e613.
This commit causes `rustc` to use `stdenv.hostPlatform.gcc.arch`, if
present, to set `-C target-cpu`, and do similarly for the
`buildPlatform`. Commented-out lines to do similarly for `gcc.tune`
are included, to be uncommented once `-Z tune-cpu` is stabilized.
This commit also allows passing arbitrary `rustc` flags through
`{build,host}Platform.rust.flags`.
Description of changes
This commit causes
rustcto usestdenv.hostPlatform.gcc.arch, if present, to set-C target-cpu, and do similarly for thebuildPlatform. Commented-out lines to do similarly forgcc.tuneare included, to be uncommented once-Z tune-cpuis stabilized.This commit also allows passing arbitrary
rustcflags through{build,host}Platform.rustc.flags.Things done
./result/bin/)